<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Model\Admin\Product;
use App\Model\Admin\ProductImage;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Hash;

class IndexController extends Controller
{
    public function index()
    {
        return view('admin.index');
    }


    public function clear()
    {
    	Cache::forget('Home');
    	$rsp = ['status'=>'success'];
    	return response()->json($rsp);
    }

    

    public function logout()
    {
        auth()->guard('admin')->logout();
        return redirect()->route('admin.login.page');
    }
}
